package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-09-28  09:23
 */
public class Cube {
    public int len;
    public void setLeg(int len) {
        this.len = len;
    }
    public void area(int len) {
        System.out.println("立方体的面积为：" + len*len*6);
    }

    public void bulk(int len) {
        System.out.println("立方体的体积为：" + len*len*len);
    }

}
